﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GNSCore.Services.Contracts;
using GNSCore.Helpers;
using System.ServiceModel.Activation;

namespace GNSCore.Services
{
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]
    public class UserSettingsService:IUserSettingsService
    {
        #region IUserSettingsService Members

        /// <summary>
        /// Returns user's settings
        /// </summary>
        /// <param name="username">Username</param>
        /// <returns>User's settings</returns>
        public GNSCore.Model.UserSettings GetUserSettings(string username)
        {
            return UserSettingsHelper.LoadUserSettings(username);
        }

        #endregion
    }
}
